package com.nuoniu.sibanyun.entity.crm.call;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.nuoniu.sibanyun.common.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

/**
 * <p>
 * 客户管理-坐席
 * </p>
 *
 * @author 白强
 * @since 2022-04-15
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("crm_call_agent")
@ApiModel(value="CrmCallAgent对象", description="客户管理-坐席")
public class CrmCallAgent extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "租户ID")
    @TableField("company_id")
    private Integer companyId;

    @ApiModelProperty(value = "登录账户")
    @TableField("login_account")
    private String loginAccount;

    @ApiModelProperty(value = "登录密码")
    @TableField("login_pwd")
    private String loginPwd;

    @ApiModelProperty(value = "公司名称")
    @TableField("tenant_name")
    private String tenantName;

    @ApiModelProperty(value = "外显号码")
    @TableField("show_number")
    private String showNumber;

    @ApiModelProperty(value = "绑定用户ID")
    @TableField("binding_user_id")
    private Integer bindingUserId;

    @ApiModelProperty(value = "绑定用户姓名")
    @TableField("binding_user_name")
    private String bindingUserName;

    @ApiModelProperty(value = "绑定时间")
    @TableField("binding_date")
    private LocalDateTime bindingDate;

    @ApiModelProperty(value = "电话")
    @TableField("phone")
    private String phone;

    @ApiModelProperty(value = "工号")
    @TableField("work_no")
    private String workNo;

    @ApiModelProperty(value = "状态 0：未启用 1.启用 2.暂停")
    @TableField("status")
    private Integer status;

    @ApiModelProperty(value = "1.号码组 2.号码")
    @TableField("binding_number_group_or_number")
    private String bindingNumberGroupOrNumber;

    @ApiModelProperty(value = "号码名称")
    @TableField("number_name")
    private String numberName;

    @ApiModelProperty(value = "号码组名称")
    @TableField("number_group_name")
    private String numberGroupName;

    @ApiModelProperty(value = "分机号")
    @TableField("extension_number")
    private String extensionNumber;

    @ApiModelProperty(value = "终端类型（ webrtc， sip话机 ， pstn ）单选")
    @TableField("call_type")
    private String callType;

    @ApiModelProperty(value = "坐席类型（ webrtc， sip话机 ， pstn ）多选")
    @TableField("agent_type")
    private String agentType;

    @ApiModelProperty(value = "创建人")
    @TableField("create_user_id")
    private Integer createUserId;

    @ApiModelProperty(value = "创建人姓名")
    @TableField("create_user_name")
    private String createUserName;

    @ApiModelProperty(value = "创建时间")
    @TableField("create_date")
    private LocalDateTime createDate;

    @ApiModelProperty(value = "结束时间")
    @TableField("end_time")
    private String endTime;

}
